<!--{include manage_header}-->
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="/manage/coupon/index.php">积分管理</a></li>
    <li><a href="/manage/coupon/card.php">代金券</a></li>
	<li style="float:right;  font-size:22px; ">
	 <a href="javascript::" style="padding-right:30px;color:#3B95C8;">
    <!--{if $_SESSION['ali_token']}-->${mb_strimwidth($login_user['realname'],0,10)}<!--{else}-->${mb_strimwidth($login_user['username'],0,10)}<!--{/if}-->
	</a> </li>
    </ul>
</div>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<!--<div class="dashboard" id="dashboard">
		<ul>${mcurrent_coupon('card')}</ul>
	</div>-->
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
				<div class="formtitle"><span>代金券</span></div>
					<ul class="filter">
						<li><form method="get">项目ID：<input type="text" name="tid" value="${htmlspecialchars($tid)}" class="h-input" />&nbsp;商户ID：<input type="text" name="pid" value="${htmlspecialchars($pid)}" class="h-input" />&nbsp;代号：<input type="text" name="code" value="${htmlspecialchars($code)}" class="h-input" />&nbsp;状态：<select name="state">${Utility::Option($usage, $state, '所有')}</select>&nbsp;<input type="submit" value="筛选" class="formbutton"  style="padding:1px 6px;"/>&nbsp;<input type="submit" name="download" value="下载" class="formbutton"  style="padding:1px 6px;"/></form></li>
					</ul>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="5" border="1" bordercolor="#89B4D6" style="width:99%" class="coupons-table">
					<tr><th width="120">ID</th><th width="40">面额</th><th width="120">代号</th><th width="80">有效期限</th><th width="100">状态</th><th width="380">商户名称</th><th width="120">操作</th></tr>
					<!--{loop $cards $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="team-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<td nowrap>${moneyit($one['credit'])}</td>
						<td nowrap>{$one['code']}</td>
						<td nowrap>${date('Y-m-d',$one['begin_time'])}<br/>${date('Y-m-d',$one['end_time'])}</td>
						<td nowrap>${$one['consume']=='Y' ? '已用':'未用'}<!--{if $one['consume']=='Y'}-->&nbsp;({$one['team_id']})<!--{/if}--></td>
						<td>{$one['partner_id']}<!--{if $one['partner_id']}-->&nbsp;({$partners[$one['partner_id']]['title']})<!--{/if}--></td>
						<td class="op" nowrap><a href="/ajax/manage.php?action=cardremove&id={$one['id']}" class="ajaxlink" ask="确定删除本张代金券？">删除</a>&nbsp;|&nbsp;<a href="/ajax/manage.php?action=cardremovezone&id={$one['id']}" class="ajaxlink" ask="确定删除本批次代金券？">删除本批</a></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="7">{$pagestring}</td></tr>
                    </table>
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>

<div id="sidebar">
</div>

</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
